tools: libxc: restore: csum the correct page
authorWen Congyang <wency@cn.fujitsu.com>
Mon, 22 Sep 2014 05:59:14 +0000 (13:59 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 22 Sep 2014 14:18:19 +0000 (15:18 +0100)
commit3460eeb3fc2811efcf2e8ac13a0882ab72ef92bc
treefe0de2357efaa50c6d6375f36abcd9734828f8df
parent035a72faf29eb691542f3fdb7cb347b323c72800
tools: libxc: restore: csum the correct page

In verify mode, we map the guest memory, and the guest page is
region_base + i * PAGE_SIZE. So we should csum page (region_base
+ i * PAGE_SIZE), not (region_base + (i+curbatch) * PAGE_SIZE)

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain_restore.c